$(document).ready(function () {
  var arr = ["w","d","f"];
  var p = [];
  for(var i=arr.length-1;i>=0;i--){
    p.push(arr.pop());
    // p.push(arr[i]);
  }

  for(var a in arr){

  }
  console.log(p);
})
